package com.aiyi.education.admin.service;


import com.aiyi.education.entity.admin.KsAdmin;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface IKsAdminService extends IService<KsAdmin> {

    /**
     *
     * @param requestJson
     * @return
     * @throws Exception
     */
    KsAdmin checkAndRegisterUser(JSONObject requestJson) throws Exception;

    Map<String, Object> checkLoginAccountAndPasswd(JSONObject requestJson) throws Exception;

    Map<String, Object> getLoginUserAndMenuInfo(KsAdmin user);

    /**
     * 根据用户编号获取用户详情
     * @param userNo
     * @return
     */
    KsAdmin getUserByUserNo(String userNo);
}
